package com.cqwshzj.framework.dao.api;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cqwshzj.framework.dao.model.JobStrategy;
import org.apache.ibatis.annotations.Param;

/**
 * @Entity com.com.cqwshzj.framework.dao.model.JobStrategy
 */
public interface JobStrategyDao extends BaseMapper<JobStrategy> {

	/**
	 * 按id查询数据并枷锁
	 * @param id
	 * @param nextRunDate
	 * @return
	 */
	JobStrategy selectOneEnabledForUpdateByIdAndNextRunDate(@Param("id") Integer id,
															@Param("nextRunDate")String nextRunDate);
}




